/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-08-01 16:06:53
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-08-01 16:26:43
 * @FilePath: \Gitee实训笔记\day15\Homework\test01\test02\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day15.test02;

// 测试类
public class Test {
    public static void main(String[] args) {
        // 21 表示工作天数
        Employee worker = new Worker("张三", "男", "2001.01.01", 21);
        // 3000 表示基本工资，2000 表示销售提成
        Employee salesman = new Salesman("赵六", "男", "2000.03.07", 3000, 2000);
        // 6000 表示基本工资
        Employee manager = new Manager("李四", "女", "2003.02.09", 6000);
        // 168 表示工作小时
        Employee floater = new Floater("王五", "女", "2002.10.23", 168);

        worker.computeSalary();
        salesman.computeSalary();
        manager.computeSalary();
        floater.computeSalary();
    }
}
